﻿
@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@model YTCMS.Domain.Entities.viewusers
<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header"><i class="fa fa-laptop"></i> 宇途后台管理系统</h3>
        <ol class="breadcrumb">
            <li><i class="fa fa-home"></i><a href="/">主页</a></li>
            <li><i class="fa fa-laptop"></i><a href="/users/index">用户管理</a></li>
            <li><i class="fa fa-plus"></i>用户详情</li>
        </ol>
    </div>
</div>

<div class="row">
    <div class="col-xs-6">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h2><i class="fa fa-indent red"></i><strong>用户基本信息</strong></h2>
            </div>
            <div class="panel-body">
                <form action="" method="post" id="form1" name="form1" enctype="multipart/form-data" class="form-horizontal ">
                    @Html.ValidationSummary(true)
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="text-input">用户名</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.UserName, new { @class = "form-control", @placeholder = "用户名" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="email-input">用户初始密码</label>
                        <div class="col-md-9">
                            <p class="form-control-static">888888</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">用户邮箱</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.Email, new { @class = "form-control", @placeholder = "用户邮箱" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">联系电话</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.Mobile, new { @class = "form-control", @placeholder = "联系电话" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">用户昵称</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.Nickname, new { @class = "form-control", @placeholder = "用户昵称" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">用户QQ</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.QQ, new { @class = "form-control", @placeholder = "用户QQ" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">性别</label>
                        <div class="col-md-9">
                            @Html.RadioButtonFor(s => s.Sex, 1)男
                            @Html.RadioButtonFor(s => s.Sex, 0)女
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">年龄</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.Age, new { @class = "form-control", @placeholder = "年龄" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">真实姓名</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.Realname, new { @class = "form-control", @placeholder = "真实姓名" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">证件号</label>
                        <div class="col-md-9">
                            @Html.DisplayFor(s => s.Identitycard, new { @class = "form-control", @placeholder = "证件号" })
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="password-input">状态</label>
                        <div class="col-md-9">
                            @Html.DropDownListFor(s => s.State, Admin.Common.YTDDL.CommonState(true, Model.State.ToString()), new { @class = "form-control" })
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> </label>
                        <div class="col-sm-9" id="divimg">
                            <img src="@Model.Image" height="100px" width="80px" />
                        </div>
                    </div>
                    <br>
                    @Html.Hidden("hidimage")
                </form>
            </div>
            
        </div>
    </div>
    <div class="col-xs-6">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h2><i class="fa fa-indent red"></i><strong>用户扩展信息</strong></h2>
            </div>
            <div class="panel-body">
                <form action="" method="post" name="form2" id="form2">
                    <div class="form-group">
                        <label for="nf-email">金额</label>
                        @Html.DisplayFor(s => s.Money, new { @class = "form-control", @placeholder = "金额" })
                    </div>
                    <div class="form-group">
                        <label for="nf-password">积分</label>
                       @Html.DisplayFor(s => s.Point, new { @class = "form-control", @placeholder = "金额" })
                    </div>
                    <div class="form-group">
                        <label for="nf-password">用户等级</label>
                        @Html.DropDownList("ddl_UserLevel", Admin.Common.YTDDL.UserLevel(true), new { @class = "form-control" })
                    </div>
                  
                </form>
            </div>
        </div>
    </div>
</div>